movies = {
 '妖猫传': ['黄轩', '染谷将太'],
 '无问西东': ['章子怡', '王力宏', '祖峰'],
 '超时空同居': ['雷佳音', '佟丽娅'],
}

actor = input('你想查询哪个演员？')

for movie in movies:
    actors = movies[movie]
    if actor in actors:
        print(actor+'出演了'+movie)
    else:
        print('您输入的演员暂时没有参演电影')
